<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div class="mainBody">
    <div class="btnArea floatFix">
        <div class="leftBtn" onclick="javascript:location.href='<?php echo backend_url('role/add'); ?>'">
        	<div class="absolute">
	            <div class="btnIcon addIcon"></div>
	            <p class="btnName fontDinproMedium">ADD ROLE</p>
			</div>
        </div>
    </div>
    <div class="tableContent">
        <table class="fontDinpro">
            <thead>
            <tr>
                <th>Role Name</th>
                <th style="width: 180px;">Options</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <th>Role Name</th>
                <th style="width: 180px;">Options</th>
            </tr>
            <?php foreach($list as $v) : ?>
                <tr class="lowTr">
                    <td><?php echo $v->name; ?></td>
                    <td>
                        <button class="tableBtn" onclick="location.href='<?php echo backend_url('role/edit/'.$v->id); ?>'">
                        	<div class="editIcon"></div>Edit
                        </button>
                        <button class="tableBtn" onclick="beSureDelete('Be sure to delete role？','<?php echo backend_url('role/del/'.$v->id); ?>')">
                        	<div class="delIcon"></div>Delete
                        </button>
                    </td>
                </tr>
            <?php endforeach; ?>
            <tr style="height: 33px;"></tr>
            </tbody>
        </table>
    </div>
</div>